<div class="main-header">
	<!-- Logo Header -->
	<div class="logo-header" data-background-color="dark">

		<a href="{:url('index/index')}" class="logo">
			<img src="__STATIC__/manage/assets/img/logo.png" style="width: 108px;height: 35px;" alt="navbar brand" class="navbar-brand">
		</a>
		<button class="navbar-toggler sidenav-toggler ml-auto" type="button" data-toggle="collapse" data-target="collapse" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon">
						<i class="icon-menu"></i>
					</span>
		</button>
		<button class="topbar-toggler more"><i class="icon-options-vertical"></i></button>
		<div class="nav-toggle">
			<button class="btn btn-toggle toggle-sidebar">
				<i class="icon-menu"></i>
			</button>
		</div>
	</div>
	<!-- End Logo Header -->

	<!-- Navbar Header -->
	<nav class="navbar navbar-header navbar-expand-lg" data-background-color="dark">

		<div class="container-fluid">

			<ul class="navbar-nav topbar-nav ml-md-auto align-items-center">

<!--				<li class="nav-item dropdown hidden-caret">-->
<!--					<a class="nav-link dropdown-toggle" href="#" id="notifDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
<!--						<i class="fa fa-bell"></i>-->
<!--						<span class="notification">4</span>-->
<!--					</a>-->
<!--					<ul class="dropdown-menu notif-box animated fadeIn" aria-labelledby="notifDropdown">-->
<!--						<li>-->
<!--							<div class="dropdown-title">你有4个新通知</div>-->
<!--						</li>-->
<!--						<li>-->
<!--							<div class="notif-scroll scrollbar-outer">-->
<!--								<div class="notif-center">-->
<!--									<a href="#">-->
<!--										<div class="notif-icon notif-primary"> <i class="fa fa-user-plus"></i> </div>-->
<!--										<div class="notif-content">-->
<!--													<span class="block">-->
<!--														新用户-->
<!--													</span>-->
<!--											<span class="time">5 分钟前</span>-->
<!--										</div>-->
<!--									</a>-->

<!--								</div>-->
<!--							</div>-->
<!--						</li>-->
<!--						<li>-->
<!--							<a class="see-all" href="javascript:void(0);">查看所有通知<i class="fa fa-angle-right"></i> </a>-->
<!--						</li>-->
<!--					</ul>-->
<!--				</li>-->
<!--				<li class="nav-item dropdown hidden-caret">-->
<!--					<a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">-->
<!--						<i class="fas fa-layer-group"></i>-->
<!--					</a>-->
<!--					<div class="dropdown-menu quick-actions quick-actions-info animated fadeIn">-->
<!--						<div class="quick-actions-header">-->
<!--							<span class="title mb-1">快捷操作</span>-->
<!--							<span class="subtitle op-8">快捷键</span>-->
<!--						</div>-->
<!--						<div class="quick-actions-scroll scrollbar-outer">-->
<!--							<div class="quick-actions-items">-->
<!--								<div class="row m-0">-->
<!--									<a class="col-6 col-md-4 p-0" href="#">-->
<!--										<div class="quick-actions-item">-->
<!--											<i class="flaticon-file-1"></i>-->
<!--											<span class="text">Generated Report</span>-->
<!--										</div>-->
<!--									</a>-->
<!--									<a class="col-6 col-md-4 p-0" href="#">-->
<!--										<div class="quick-actions-item">-->
<!--											<i class="flaticon-database"></i>-->
<!--											<span class="text">Create New Database</span>-->
<!--										</div>-->
<!--									</a>-->
<!--									<a class="col-6 col-md-4 p-0" href="#">-->
<!--										<div class="quick-actions-item">-->
<!--											<i class="flaticon-pen"></i>-->
<!--											<span class="text">Create New Post</span>-->
<!--										</div>-->
<!--									</a>-->

<!--								</div>-->
<!--							</div>-->
<!--						</div>-->
<!--					</div>-->
<!--				</li>-->
				<li class="nav-item dropdown hidden-caret">
					<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#" aria-expanded="false">
						<div class="avatar-sm">
							<img src="__STATIC__/manage/assets/img/profile.jpg" alt="..." class="avatar-img rounded-circle">
							{if $msgNum>0}
							<span class="layui-badge" style="position: absolute;
            left: 75%;
            top: -8px;
            background-color: red;
            color: #fff;
            line-height: 18px;
            /*width: 18px;*/
            border-radius: 30px;
            text-align: center;

            font-size: 12px;
">{$msgNum}</span>
							{/if}
						</div>
					</a>
					<ul class="dropdown-menu dropdown-user animated fadeIn">
						<div class="dropdown-user-scroll scrollbar-outer">
							<li>
								<div class="user-box">
									<div class="avatar-lg"><img src="__STATIC__/manage/assets/img/profile.jpg" alt="image profile" class="avatar-img rounded"></div>
									<div class="u-text">
										<h4>{$user_info.phone}</h4>
										<p class="text-muted">{$group_info.title}</p><a href="{:url('index/edit_password')}" class="btn btn-xs btn-secondary btn-sm">账户设置</a>
									</div>
								</div>
							</li>
							<li>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="{:url('Message/index')}?aid={$user_info.id}">查看管理员消息</a>
								<a class="dropdown-item" href="{:url('Message/Merchant')}">查看商户消息</a>
							</li>
							<li>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="{:url('login/logout')}">退出</a>
							</li>
						</div>
					</ul>
				</li>
			</ul>
		</div>
	</nav>
	<!-- End Navbar -->
</div>
<script src="__STATIC__/manage/assets/js/core/jquery.3.2.1.min.js"></script>
<script src="__STATIC__/manage/lib/layer/2.4/layer.js"></script>
<script>

	var alertMsg = JSON.parse('{$msgDef}');
	if(alertMsg!=null){
		var arrKey = Object.keys(alertMsg);

		if(arrKey.length>0){
			var type='auto'
			layer.open({
				type: 1
				,offset: type //具体配置参考：http://doc/modules/layer.html#offset
				,id: 'layerDemo'+type //防止重复弹出
				,content: '<div style="padding: 20px 100px;"><h3 style="text-align: center">'+alertMsg.title+'</h3><div id="" class="layui-layer-content"><div style="padding:20px">'+alertMsg.content+'</div></div></div>'
				,btn: '确定'
				,btnAlign: 'c' //按钮居中
				// ,shade: 0 //不显示遮罩
				,closeBtn: 0
				,yes: function(){
					$.post("{:url('Message/status')}",{status:1,id:alertMsg.id},function(data){
						if(data.code == 1001){
							layer.closeAll();
							window.location.reload();
						}else{
							layer.msg(data.msg,{icon: 2,time:1000});
						}

					});
				}
			});
		}
	}


	var alertMsg2 = JSON.parse('{$msgYou}');
	if(alertMsg2!=null){
		var arrKey = Object.keys(alertMsg2);

		if(arrKey.length>0){
			var type='rb'
			layer.open({
				type: 1
				,offset: type //具体配置参考：http://doc/modules/layer.html#offset
				,id: 'layerDemo2'+type //防止重复弹出
				,content: '<div style="padding: 20px 100px;"><h3 style="text-align: center">'+alertMsg2.title+'</h3><div id="" class="layui-layer-content"><div style="padding:20px">'+alertMsg2.content+'</div></div></div>'
				// ,btn: '确定'
				// ,btnAlign: 'c' //按钮居中
				// ,shade: 0 //不显示遮罩
				// ,closeBtn: 0
				,cancel: function(){
					$.post("{:url('Message/status')}",{status:1,id:alertMsg2.id},function(data){
						if(data.code == 1001){
							layer.closeAll();
							window.location.reload();
						}else{
							layer.msg(data.msg,{icon: 2,time:1000});
						}

					});
				}
			});
		}
	}




</script>

